#pragma once

class FREdit : public CRichEditCtrl
{
public:
	FREdit(void);
	virtual ~FREdit(void);

private:
	UINT m_uFindMsg;
	CFindReplaceDialog * m_cFindDlg;

public:
	void FTFindText();

protected:
	LRESULT OnFindMessage(FINDREPLACE & fr);
	LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	void DoFind(LPCTSTR text, DWORD dwFlags);
	CString GetSelText();
};
